<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean"%>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html"%>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>
</head>
<body>
<table align="center"><font size="5" color="##007979">用户帐号管理</font></table>
<br>
<table align="center">
<tr>
<td><form name="form1" method="post" action="jumptomanager.do?method=jumpToUserAdd">
  <input type="submit" name="button" id="button" value="注册用户">
</form></td>
<td><form name="form1" method="post" action="user.do?method=findUsers">
<input name="id" type="text" id="textfield" size="10" value="输入用户id">
<input type="submit" name="button" id="button" value="搜索"></form>
</td></tr>
</table>
<table align="center">
<tr><td>用户表</td></tr>
<TR bgcolor="#9D9D9D">
		<TD>编码</TD>
		<TD>用户名</TD>
		<TD>密码</TD>
		<TD>电话</TD>
		<TD>用户类型</TD>
		<TD>操作</TD>
	</TR>
	<logic:present name="user_list">
	<logic:iterate id="user" name="user_list" scope="request">
	<TR>
		<TD><bean:write name="user" property="id" scope="page" format="#"/></TD>
		<TD><bean:write name="user" property="name" scope="page"/></TD>
		<TD><bean:write name="user" property="passWord" scope="page" /></TD>
		<TD><bean:write name="user" property="phone" scope="page" /></TD>
		<TD><bean:write name="user" property="type" scope="page" /></TD>
		<TD><a href='jumptomanager.do?method=editPage&id=<bean:write name="user" property="id" scope="page" format="#"/>'>修改</a>
		<a href="user.do?method=deleteUser&id=<bean:write name="user" property="id" scope="page" format="#"/>">删除</a>
		</TD>
	</TR>
	</logic:iterate>
	</logic:present>
</table>
</body>
</html>